package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 出生申报表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("birth_registration")
@Schema(name = "BirthRegistration", description = "出生申报表")
public class BirthRegistration implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "申报ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    @Schema(description = "新生儿姓名")
    @TableField("child_name")
    private String childName;

    @Schema(description = "新生儿性别：1-男，2-女")
    @TableField("child_gender")
    private Byte childGender;

    @Schema(description = "出生日期")
    @TableField("birth_date")
    private Date birthDate;

    @Schema(description = "出生地点")
    @TableField("birth_place")
    private String birthPlace;

    @Schema(description = "出生证明编号")
    @TableField("birth_certificate_no")
    private String birthCertificateNo;

    @Schema(description = "父亲人员ID")
    @TableField("father_id")
    private Long fatherId;

    @Schema(description = "母亲人员ID")
    @TableField("mother_id")
    private Long motherId;

    @Schema(description = "目标户籍ID")
    @TableField("target_household_id")
    private Long targetHouseholdId;

    @Schema(description = "申请状态：1-待审核，2-已通过，3-已拒绝")
    @TableField("application_status")
    private Byte applicationStatus;

    @Schema(description = "审批时间")
    @TableField("approval_time")
    private Date approvalTime;

    @Schema(description = "审批人ID")
    @TableField("approval_by")
    private Long approvalBy;

    @Schema(description = "审批备注")
    @TableField("approval_remark")
    private String approvalRemark;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
